home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / QuickTime / QuickTime VR / Make QTVR Panorama / CUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.5 KB  |  83 lines  |  [TEXT/CWIE]

  1. /*
  2.     Random and sundry error, file and path name utilities
  3.     
  4.     Created 29 Jan 1996 by EGH
  5.     
  6.     Copyright © 1996, Apple Computer, Inc. All rights reserved.
  7. */
  8.  
  9. #pragma once
  10.  
  11. #include <ImageCompression.h>
  12.  
  13. #include <LWindow.h>
  14.  
  15. void GetFullPathName(
  16.     const FSSpec *fileSpec,
  17.     Str255 outPathName,
  18.     short maxSize = 255);
  19. OSErr FSpGetFullPath(
  20.     const FSSpec *spec,
  21.     short *fullPathLength,
  22.     Handle *fullPath);
  23. void ElipsedPathName(
  24.     Str255 pathName,
  25.     short maxWidth,
  26.     Str255 elipsedName,
  27.     char elipsis);
  28. void ElipsedPathNameH(
  29.     Handle pathNameH,
  30.     short maxWidth,
  31.     Str255 elipsedName,
  32.     char elipsis);
  33. void SetSizedDescriptor(
  34.     LWindow *parent,
  35.     PaneIDT inPaneID,
  36.     StringPtr inDescStr);
  37. void ReportError(
  38.     ExceptionCode inErr,
  39.     Int16 inStrIndex);
  40. OSErr GetFileParent(
  41.     FSSpec *fileSpec,
  42.     FSSpec *parentSpec);
  43. void ReadPictFrame(
  44.     const FSSpec &inPictSpec,
  45.     Rect &outPictRect);
  46. void FixedToStr(
  47.     Fixed inFixValue,
  48.     Str255 outStr);
  49. Fixed StrToFixed(
  50.     StringPtr str);
  51. Boolean FindCodecName(
  52.     StringPtr outName,
  53.     CodecType inCodec);
  54. void SetCompressionText(
  55.     LPane *inPane,
  56.     CodecType inCodec,
  57.     CodecQ inSpatialQuality);
  58.  
  59.  
  60. enum
  61. {
  62.     err_Window = 1,
  63.     err_OpenPicture = 2,
  64.     err_CreateTileMovie = 3,
  65.     err_CreatePanoMovie = 4,
  66.     err_BadPictHeight = 5,
  67.     err_ErrorSettingCompression = 6,
  68.     STRx_Errors = 222
  69. };
  70.  
  71. enum
  72. {
  73.     err_NotEnufMemory = 1,
  74.     err_DiskError = 2,
  75.     err_DiskFull = 3,
  76.     err_NoDescription = 4,
  77.     err_NoResource = 5,
  78.     err_NotEnufPhysicalMemory = 6,
  79.     STRx_ErrorDescs = 224
  80. };
  81.  
  82. const ResIDT ALRT_Error = 129;
  83.